Online documentation - WebsydianExpress v3.5 |
WSYEXTJS/ExtWebUpdatePage
This is an abstract PageGenerator that can be used if you want to have an update page outside a WebEditSuite. This page is designed for use in the Ext JS for WebsydianExpress framework.
The PageGenerator includes two EventHandlers: Update and Cancel. The Update EventHandler validates the record by calling a separate validation function (scoped by the ServiceFunctions function). This function performs the standard validation based on the Plex definitions. If the validation succeeds, the record is updated.
You must start by creating a function that inherits from ExtWebUpdatePage:
Source Object | Verb | Target Object |
---|---|---|
MyUpdatePage | is a FNC | WSYEXTJS/ExtWebUpdatePage |
Then you must specify the entity to update records for by replacing the UIBasic.Update view with your own Update view - and the UiBasic.Detail view with your Fetch view
Source Object | Verb | Target Object |
---|---|---|
MyUpdatePage | replaces VW
...by VW |
UIBASIC/UiBasic.Update
MyEntity.Update |
MyUpdatePage | replaces VW
...by VW |
UIBASIC/UiBasic.Detail
MyEntity.Fetch |
Finally, you must enter calls to a PageGenerator in the Update and Cancel EventHandler.
In many cases, you will get the update page as part of a WebEditSuite - either by inheriting from ExtWebEditDialog or from ExtWebEditSuite.
You can customize the validation by making changes to the MyUpdatePage.ServiceFunctions.Validation function. This function inherits from WSYAPI/Abstract.ValidationFunction